<template>
	<view class="container">
		<view class="smart-panel-head">
			<view class="smart-panel-h" @click="goDetailPage('navigators')"></view>
			<navigator url="/pages/components/navigate/navigate?username='hhl'&userid='123'">
				<button type="primary">返回原页面</button>
			</navigator>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				title:'navigator',
				user:'hhl',
				uid:1234
			}
		},
		methods: {
				goNewPage(){
					uni.navigateTo({
						url:"/pages/components/navigate/navigate"+"user="+this.user+"&userid="+this.uid,
						success(){
							console.log("yes");
						},fail(exp){
							console.log("fail"+JSON.stringify(exp));
						}
					})
				}
		}
	}
</script>

<style>

</style>
